package common;

public class CodeCheck {

	public static boolean TitleCheck(String str) {
		boolean checkFlg;

		checkFlg = true;

		if (str == null) {
			checkFlg = false;
		}

		if (str.length() == 0) {
			checkFlg = false;
		}

		if (str.length() > 100) {
			checkFlg = false;
		}

		return checkFlg;
	}

	public static boolean MessageCheck(String str) {
		boolean checkFlg;

		checkFlg = true;

		if (str == null) {
			checkFlg = false;
		}

		if (str.length() == 0) {
			checkFlg = false;
		}

		if (str.length() > 200) {
			checkFlg = false;
		}

		return checkFlg;
	}

}
